package com.wnxy.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
  @TableName("t_permission")
@ApiModel(value = "Permission对象", description = "权限表")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("父权限id")
      private Integer parentId;

      @ApiModelProperty("权限名称")
      private String pname;

      @ApiModelProperty("权限可访问路径")
      private String url;

      @ApiModelProperty("权限编码")
      private String code;

      @ApiModelProperty("权限等级")
      private Integer level;

      @ApiModelProperty("权限排序")
      private Integer sort;


}
